package com.library.mapper;
/*
 *
 *   @Author:max
 *   @Date: 2023/10/8-10-08-18:57
 *
 */

import com.library.bean.Writer;

import java.util.List;

public interface WriterMapper {

   Writer getWriterById(int writerId);

   List<Writer> getAllWriters();

   //嵌套结果
   List<Writer> getAllWritersWithBook();

   List<Writer> getAllWritersWithBookByName(String writerName);
}
